package com.mou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.mou.dto.RolePageQueryDTO;
import com.mou.entity.Role;
import com.mou.vo.SelectRoleVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface RoleMapper extends BaseMapper<Role> {
    Page<Role> pageQuery(RolePageQueryDTO rolePageQueryDTO);
    @Select("select id,role_name as roleName from role where deleted = 0")
    List<SelectRoleVO> getSelectRole();
}
